var express = require('express');
var router = express.Router();
const product = require('../controllers/product.controller');

/* GET products listing. */
router.post('/', product.create);
router.put('/:id', product.update);
router.delete('/:id', product.remove);
router.get('/:id', product.get);
router.post('/list', product.list);

module.exports = router;